package com.mstore.util;

public class StringToInt {
	public static Integer year(String time){
		String str1=time.replace(":","");
		String str2=str1.replace("-","");
		String str3=str2.replace(" ","").trim();
		String str4=str3.substring(0,4);
		Integer intTime=Integer.valueOf(str4).intValue();
		return intTime;
		
	}
	public static Integer mouth(String time){
		String str1=time.replace(":","");
		String str2=str1.replace("-","");
		String str3=str2.replace(" ","").trim();
		String str4=str3.substring(4,str3.length());
		Integer intTime=Integer.valueOf(str4).intValue();
		return intTime;
	}
}